package zking.service.Impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import lombok.RequiredArgsConstructor;
import zking.dao.OrderDao1;
import zking.dao.UserDao;
import zking.entity.Order;
import zking.entity.User;
import zking.service.UserService;

import java.util.List;


@RequiredArgsConstructor
public class UserServiceImpl  implements UserService {
    private final UserDao userDao;

    public List<User> findUser() {
        List<User> users = userDao.selectList(null);
        return users;
    }
//    @Override
//    public User findUserAndOrder(String username, String password) {
//        User user1 = userDao.selectOne(new QueryWrapper<User>().eq("user_name", username).eq("password", password));
//        return user1;
//
//    }

}
